package winOrDie.Net.Http.ws.impl;

public class FunctionsImplProxy implements winOrDie.Net.Http.ws.impl.FunctionsImpl {
  private String _endpoint = null;
  private winOrDie.Net.Http.ws.impl.FunctionsImpl functionsImpl = null;
  
  public FunctionsImplProxy() {
    _initFunctionsImplProxy();
  }
  
  public FunctionsImplProxy(String endpoint) {
    _endpoint = endpoint;
    _initFunctionsImplProxy();
  }
  
  private void _initFunctionsImplProxy() {
    try {
      functionsImpl = (new winOrDie.Net.Http.ws.impl.FunctionsImplServiceLocator()).getFunctionsImpl();
      if (functionsImpl != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)functionsImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)functionsImpl)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (functionsImpl != null)
      ((javax.xml.rpc.Stub)functionsImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public winOrDie.Net.Http.ws.impl.FunctionsImpl getFunctionsImpl() {
    if (functionsImpl == null)
      _initFunctionsImplProxy();
    return functionsImpl;
  }
  
  public java.lang.String doLogin(java.lang.String xml_Do_Login) throws java.rmi.RemoteException{
    if (functionsImpl == null)
      _initFunctionsImplProxy();
    return functionsImpl.doLogin(xml_Do_Login);
  }
  
  public java.lang.String getPartidasActuales(java.lang.String xml_Get_Partidas_Actuales) throws java.rmi.RemoteException{
    if (functionsImpl == null)
      _initFunctionsImplProxy();
    return functionsImpl.getPartidasActuales(xml_Get_Partidas_Actuales);
  }
  
  public java.lang.String setDatosPartida(java.lang.String xml_Set_Nueva_Partida) throws java.rmi.RemoteException{
    if (functionsImpl == null)
      _initFunctionsImplProxy();
    return functionsImpl.setDatosPartida(xml_Set_Nueva_Partida);
  }
  
  public java.lang.String setNuevaPartida(java.lang.String xml_Set_Nueva_Partida) throws java.rmi.RemoteException{
    if (functionsImpl == null)
      _initFunctionsImplProxy();
    return functionsImpl.setNuevaPartida(xml_Set_Nueva_Partida);
  }
  
  public java.lang.String setStatsPartida(java.lang.String xml_Do_Login) throws java.rmi.RemoteException{
    if (functionsImpl == null)
      _initFunctionsImplProxy();
    return functionsImpl.setStatsPartida(xml_Do_Login);
  }
  
  public java.lang.String getCurrentPlayersOnGame(java.lang.String xml_Get_Players) throws java.rmi.RemoteException{
    if (functionsImpl == null)
	  _initFunctionsImplProxy();
    return functionsImpl.setStatsPartida(xml_Get_Players);
  }
  
  public java.lang.String checkConnection(java.lang.String xml_Check_Connection) throws java.rmi.RemoteException{
	  if (functionsImpl == null)
		  _initFunctionsImplProxy();
	  return functionsImpl.setStatsPartida(xml_Check_Connection);
  }
  
  
}